import { NgModule, ErrorHandler } from '@angular/core';
import { HttpModule } from '@angular/http';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { TasksModule } from '../pages/tasks/tasks.module';
import { MenusModule } from '../pages/menus/menus.module';
import { MyModule } from '../pages/my/my.module';
import { LaunchPage } from './app.component';
import { LoginPage } from '../pages/login/login';
import { TabsPage } from '../pages/tabs/tabs';
import { AppService, TransService } from './app.service';
import { DfHTTP } from '../lib/network/network.service';
import { LoginService, UserService } from '../pages/login/login.service';
import { Storage } from '@ionic/storage';

@NgModule({
    declarations: [
        LaunchPage,
        LoginPage,
        TabsPage
    ],
    imports: [
        HttpModule,
        IonicModule.forRoot(LaunchPage, {
            tabsHideOnSubPages: true,
            backButtonText: ''
        }),
        TasksModule,
        MenusModule,
        MyModule
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        LaunchPage,
        LoginPage,
        TabsPage
    ],
    providers: [{ provide: ErrorHandler, useClass: IonicErrorHandler }, AppService, TransService, DfHTTP, LoginService, UserService, Storage]
})
export class AppModule { }
